﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.NeighborUI {
    import flash.events.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.*;

    public class FriendEnterRewardDialog extends GenericDialog {

        private var m_friend:Player;
        private var m_coins:int;
        private var m_energy:int;
        private var m_xp:int;

        public function FriendEnterRewardDialog(_arg1:Player, _arg2:int=0, _arg3:int=0, _arg4:int=0, _arg5:Function=null, _arg6:Boolean=true){
            this.m_friend = _arg1;
            this.m_coins = _arg2;
            this.m_energy = _arg3;
            this.m_xp = _arg4;
            super("", "", 0, _arg5, "", "", _arg6);
        }
        override protected function loadAssets():void{
            Global.delayedAssets.get("assets/dialogs/NeighborVisitAssets.swf", makeAssets);
        }
        public function get amount():int{
            var _local1:FriendEnterRewardDialogView = (m_jpanel as FriendEnterRewardDialogView);
            return (_local1.amount);
        }
        override protected function onAssetsLoaded(_arg1:Event=null):void{
            var _local2:Dictionary = new Dictionary();
            _local2["closeBtnDown"] = m_comObject.closeBtnDown;
            _local2["closeBtnOver"] = m_comObject.closeBtnOver;
            _local2["closeBtnUp"] = m_comObject.closeBtnUp;
            _local2["dialogBG"] = m_comObject.dialogBG;
            _local2["coinIcon"] = m_comObject.coinIcon;
            _local2["energyIcon"] = m_comObject.energyIcon;
            _local2["starXPIcon"] = m_comObject.starXPIcon;
            _local2["friend"] = this.m_friend;
            m_jpanel = new FriendEnterRewardDialogView(_local2, this.m_coins, this.m_energy, this.m_xp, m_message, m_title, m_type, m_callback);
            finalizeAndShow();
        }

    }
}//package Display.NeighborUI 
